import request from '@/utils/request'

// 查询权益管理列表
export function listExclusiveBenefits(query) {
  return request({
    url: '/system/ExclusiveBenefits/list',
    method: 'get',
    params: query
  })
}

// 查询权益管理详细
export function getExclusiveBenefits(BenefitID) {
  return request({
    url: '/system/ExclusiveBenefits/' + BenefitID,
    method: 'get'
  })
}

// 新增权益管理
export function addExclusiveBenefits(data) {
  return request({
    url: '/system/ExclusiveBenefits',
    method: 'post',
    data: data
  })
}

// 修改权益管理
export function updateExclusiveBenefits(data) {
  return request({
    url: '/system/ExclusiveBenefits',
    method: 'put',
    data: data
  })
}

// 删除权益管理
export function delExclusiveBenefits(BenefitID) {
  return request({
    url: '/system/ExclusiveBenefits/' + BenefitID,
    method: 'delete'
  })
}
